home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
editor
/
gsar110.zip
/
ARG_FUNC.H
< prev
next >
Wrap
C/C++ Source or Header
|
1996-08-08
|
928b
|
25 lines
/* arg_func.h ************************************** updated: 931015.16:49 TT
*
* Description : Header file for arg_func.c
* Author : Tormod Tjaberg
*/
/* variables and defines used by GetOpt
*/
extern int OptInx; /* index into argv, skip argv[0]; filename */
extern int CurOpt; /* current option checked for validity */
extern char *pOptArg; /* argument associated with option */
#define BAD_CHAR (int) 1 /* option char not in option string */
#define MISSING_OPT (int) 2 /* switch character '-' but no option */
#define MISSING_ARG (int) 3 /* option required argument but none found */
#define NON_OPT (int) 4 /* non option found '|' not in option string */
/* function prototypes
*/
int GetOpt( int argc, char **argv, char *pOptStr );
int GetEnvArgs( int *argc, char ***argv, char *pEnvVar );
void Abort( char *,... );